/******************************************************************************
 * Copyright (C) 2014 ShenZhen YiHua Computer Co., Ltd.
 * All Rights Reserved.
 * 本软件为深圳怡化电脑股份有限公司开发研制。未经本公司正式书面同意，其他任何个人、团体
 * 不得使用、复制、修改或发布本软件.
 *****************************************************************************/
package net.dgg.dggcloud.core.fileload;

import java.util.Calendar;

/**
 * 文件信息模型.<br/>
 * @author  chenligang@yihuacomputer.com 2014年9月19日
 * @version     1.0
 */
public class FileInfoModel
{
    /**
     * 文件编号
     */
    private Long id;

    /**
     * 源编号
     */
    private String sourceId;

    private String name;

    private String path;

    private String funcType;

    private String originalFilename;

    private Calendar date;

    private String description;

    private String remark;

    private String moduleType;

    private String systemType;

    /**
     * 存放错误信息，当error是null时，FileInfoModel对象无效
     */
    private String error;
    
    public boolean isInValid()
    {
    	return (error != null) && (!error.isEmpty());
    }
    
    /**
     * 文件类型，并不是指扩展名，而是指文件的用途
     */
    private String fileType;

    //private Long userId; 操作人员

    
    private String atCategory;

    public String getAtCategory()
    {
        return atCategory;
    }

    public void setAtCategory(String atCategory)
    {
        this.atCategory = atCategory;
    }
    
    public Long getId()
    {
        return id;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public String getSourceId()
    {
        return sourceId;
    }

    public void setSourceId(String sourceId)
    {
        this.sourceId = sourceId;
    }

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String getPath()
    {
        return path;
    }

    public void setPath(String path)
    {
        this.path = path;
    }

    public Calendar getDate()
    {
        return date;
    }

    public void setDate(Calendar date)
    {
        this.date = date;
    }

    public String getDescription()
    {
        return description;
    }

    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getRemark()
    {
        return remark;
    }

    public void setRemark(String remark)
    {
        this.remark = remark;
    }

    public String getOriginalFilename()
    {
        return originalFilename;
    }

    public void setOriginalFilename(String originalFilename)
    {
        this.originalFilename = originalFilename;
    }

    public String getModuleType()
    {
        return moduleType;
    }

    public void setModuleType(String moduleType)
    {
        this.moduleType = moduleType;
    }

    public String getSystemType()
    {
        return systemType;
    }

    public void setSystemType(String systemType)
    {
        this.systemType = systemType;
    }

    public String getFileType()
    {
        return fileType;
    }

    public void setFileType(String fileType)
    {
        this.fileType = fileType;
    }

    public String getFuncType()
    {
        return funcType;
    }

    public void setFuncType(String funcType)
    {
        this.funcType = funcType;
    }

	public String getError() {
		return error;
	}

	public void setError(String error) {
		this.error = error;
	}
}
